package com.tongji.diy.event
{
	import flash.events.Event;
	import flash.geom.Point;
	
	public class AddNewFurnitureEvent extends Event
	{
		public static const ADD_NEW_FURNITURE:String = "addNewFurniture";
		public var position:Point;
		public var angle:Number;
		public var length:Number;
		public var width:Number;
		public var height:Number;
		public var furnitureClass:int;
		public var index:uint;
		//furnitureClass==0 说明furniture不属于任何类型
		public function AddNewFurnitureEvent(type:String,index:uint,position:Point = null, angle:Number = 0, length:Number = 0, width:Number = 0,height:Number = 0, furnitureClass:int = 0,bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			this.index = index;
			this.position = position;
			this.angle = angle;
			this.length = length;
			this.width = width;
			this.height = height;
			this.furnitureClass = furnitureClass;
		}
		
		override public function clone():Event
		{
			return new AddNewFurnitureEvent(type,index,position, angle, length, width, height, furnitureClass);
		}
	}
}